//
//  StoreIntroduceTableViewCell.m
//  Shengzhuli
//
//  Created by subook on 16/8/12.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "StoreIntroduceTableViewCell.h"
#import "AddressField.h"

@interface StoreIntroduceTableViewCell()

@property (weak, nonatomic) IBOutlet AddressField *troductionField;
@property (weak, nonatomic) IBOutlet UILabel *nameLab;

@end

@implementation StoreIntroduceTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.troductionField.layer.borderColor = RGBColorOne(220).CGColor;
    self.troductionField.placeHolder = @"请输入商家介绍";//在这设置不管用
}
- (void)setPlaceHolder:(NSString *)placeHolder
{
    _placeHolder = placeHolder;
    self.troductionField.placeHolder = placeHolder;
}
- (void)setTroduction:(NSString *)troduction
{
    _troduction = troduction;
    if (troduction.length<1) return;
    self.troductionField.text = troduction;
}
- (void)setNameStr:(NSString *)nameStr
{
    _nameStr = nameStr;
    self.nameLab.text = nameStr;
    self.troductionField.placeHolder = [NSString stringWithFormat:@"请输入%@",nameStr];
}

@end
